<template>
	<view class="content">
		<ali :state="alidata2.state" :datas="alidata2.data" :ways="alidata2.information"></ali>
	</view>
</template>

<script>
import ali from '@/components/WuLiu-step.vue';
import {getData} from '@/api/publicapi.js'
export default {
	components: {
		ali
	},
	data() {
		return {
			// alidata: {
			// 	state: 2,
			// 	uptime: '2019-05-23 17:52:06',
			// 	data: [],
			// 	information: {
			// 		no: '231880744913',
			// 		sName: 'SF',
			// 		expName: '顺丰速运',
			// 		url: 'http:www.sf-express.com',
			// 		tel: '95338',
			// 		img: 'https://oss-cn2.apistore.cn/exp/SF.png'
			// 	}
			// },
			alidata2: {
				state: 3,
				uptime: '2019-05-24 10:58:24',
				data: [],
				information: {
					no: '70939995911523',
					sName: 'HTKY',
					expName: '百世快递(原汇通)',
					url: 'http:www.htky365.com',
					tel: '021-62963636',
					img: 'https:oss-cn2.apistore.cnexpHTKY.png'
				},
			},
			order_serial:""
		}
	},
	onLoad(e) {

		let order_serial=e.data
		// console.log(order_serial)
		this.order_serial=order_serial
		this.getExpressDetail()
	},
	methods: {
		getExpressDetail(){
			let order_serial=this.order_serial
			
			getData(`front/order/${order_serial}`).then(res=>{
				//物流跟踪数组取反
				let  trackArr=res.result.list.reverse()
				// console.log(trackArr)
				this.alidata2.data=trackArr
		
			})
		}
	}
}
</script>

<style>
.content {
}
</style>
